<?php
	if (!$calldata) exit();
	$xmlf = new simplexml;
	$friendsClass = $xmlf -> xml_load_file("profile/friends.xml");
	$friends = $friendsClass -> person;
	$i = 0;
	foreach($friends as $person) {
		$friend[$i]["name"] = $person -> content();
		$friend[$i]["name"] = $friend[$i][name] -> scalar;
		$friend[$i]["attributes"] = $person -> attributes();
		$friend[$i]["shorturl"] = $friend[$i]["attributes"] -> url;
		$friend[$i]["url"] = "http://" . $friend[$i]["shorturl"];
		$friend[$i]["xfn"] = $friend[$i]["attributes"] -> rel;
		$i++;
	}
?>